added previous/ next navigation handler