add function to obtain available groups.
add groups function, index page.