implements "Mark as read" and "Delete" buttons in messages