made the view render with the help of the controller