feat #352 Orientation change detection

Customized orientation change detection functionality is added to AT.