added option to enable & disable dragging programatically