added orientation state
Phew