added next/prev disabling