Adding functional back and forward when navigating the groups.