Network connection and portrait mode