add mapping for prev and next