add next and prevous