fixed next/prev button display issue