extract options and mode menu from search view, create selectTable js class, redesign search_options