Moved all logic to routes.php, formatted _master.blade.php to reflect changes