Added doOnOrientationChange()

Added doOnOrientationChange() function