Refactor index file
Use apps load_template function
Remove app specific template loader function