change the way of monitoring orientation change

use onOrientationChangeListener instead. works when auto rotation is
not turned on