[ratchet-ui] Implement previous and next buttons