making modal hide on download page when download is clicked