working on switching between field selection and search selection