now generating details view and passing them along as argument instead
of calling the controller from the view.