huge progress, modals all working - next step, new page and javascript algorithm