adding a modal and sorting the sections