added drag and drop condition