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