worked on making javascript improvements to the modals