fixed ordering for next/prev buttons