fixed DRY issue with duplication of view code in create and show, moved to template