Pull-to-refresh function added to message list