Move button config to items in order to simplify logic, and remove the redundant "nextButton" property on the last item