what happend to 'Cannot set headers after they are sent to the client' when i use res.send(index) 