creating View and template