adding details views and template