adding next/prev, adding node class