changed the center state button to change according to screen size