Landscape support

Fixed bug where activity crashes when changing orientation