use parametr for groups view and preferences view