fixed exception thrown when moving from landscape to portrait. still working
on fixing state between orientation