Adds templates for view and edit