use spinner for query options