Got next and previous error buttons working