Handling screen orientation changes correctly now.