add switch and spinner in fragment 1