Added onnext() which allows to set a callback when pressing Next