Added directives to help clean up the main page