fixing a bug where the 'close' button is draggable