Type in new label input the name of the state e.g: S1 then hold Ctrl and double click anywhere on the canvas to add that state.
Type in new label input the name of the input e.g: 0, hold Ctrl double click on the source state, then double click on the target state.
Hold Alt key and double click the state that you want to make final
Hold Ctrlkey and right click the state that you want to delete