added orientation change support to example