Added code to populate the dropdown list
Added functionality to populate the groups dropdown