updated controller and added show view