added next and previous version buttons