added ui handler for button and drag drop