Now able to call controller methods and pass session variables to the view