updated modal for side effects and removing rows and displaying only those rows that have not been read yet