finish views and template