Added spec and code for the group details based on the selected list id