moved page decision logic to new file, and modified index.php to use bootstrap with new layout