fixed rendering bug and refactored the mark all as read code so it lives in the proper view now