refactor: move views and templates from app to html