adding in original class and starting prev/next functions