add support for next and previous arrows