moved dropEvent code to tbms.cpp