fixed looping for next and previous playbar buttons