trying to deal with issues resulting from a orientation change.