Remove echo from controller and replace with setResponse