add drag and resize for events