added constructor to GroupsController and SettinsController