add template view and fix other views