Refreshing the messages when a category is selected now works