Making showNext and showPrevious messages to work