Creating the next and prev navigation in messageList