gets modals working