imrove SegmentedButton show and hide element