correct display of frame whith edittemplate option (refs #4274)
correct display of frame whith viewtemplate option (refs #4274)