Added seen/unseen filter and sorting for messages