add a button to fold/unfold frame (closes #289629) [applied]