update next/prev buttons