added dragging in events and saving resized events