fixed ui panel dragging, now compatible in all browsers