rewrite core: views and templates