fix header and footer to work with all pages

Header didn't work for pages other than index.php, now both header and footer appears as they should in pages such as mining.php
I started this because the menu drop down didn't appear on pages such as mining.php.