fix bug in controller and remove binding.pry