Device orientation

This fixes positioning of the view when the device changes orientation