I have created methods getNextId/getPrevId which acts similiar to a listener