layout for checking states