returning 3 diferent types of list: pending, orphan and closed.