added event for next btn and changed method name