updated markup for naxt and prev nav
updated previous and next output