made changes because the first modal stopped showing the title