put modals where they belong