Adding first next prev plugin api functions