added orientation change tracking