adjust template view