Update indexfunctions.php

Added clickable divs to the header, cleared up the formatting to make it easier to read/edit