Reset frame size when viewing new template