Added max_cap function for groups and added capacity page route.