drag and resize update scope variables now