.
.
.
.
.
Finalized the view groups function for the edit and main page.