added drag and drop mouse control