added contraints for device orientation changes