Finished code to mark notifications read