view model php added to support all the functions for displaying various views to the user