Changes bar hiding to use ControlMask