formatted all code and fixed routing for assigning groups and repos