changing control layout when the screen is narrow