modals now appear after searching or sorting