Fixed so orinetation change does not cause activity restart.