fix crashes after orientation change
moved some styling to xml