added function to disable/enable draggable elements