added drag and drop functionality in render