close button and active window bug due to draggable