added save event after drag or resize