Added UI event handling
Introduced dragdrop handler