add templates and main view