Implemented #9
Maintain state when rotate screen.