refactor in progress. js for select_group still needs anchor tags