getting portrait mode working