Implemented resize for the control bar