combined two modals into one