updated for header and footer template and app and main .js