change events logic for orientation and location