updated the controller and html files