adds "prev" and "next"