Moved more stuff out of index.php and into Bootstrap class