hide editor on deselecting template