adding handlers for drag&drop change orientation of a device