fixed next/previous template