Added change of device orientation