refactor main index.php to use caching
added new hook index-header