remodeled logic so it would absorv the new select field on the query. added new select field for query. rearranged fields on the page.