now detecting resize and rotation events

Need to move this into a service