converted header and footer to master page

merge header and footer into master.php and updated View class
appropriately