add restart and cancel to build