Adding some helper methods to get the next and previous links