Loading templates and app