move away from redirect_to approach in the controller