Trying to to recreate the mainViews.php file.