layout and spinner