Calling different function on orientation change.