writing orientation change handlers.  stable.