adding drag/resize handlers