first pass at switching to showing modals with js