finished cancel button and electromagnet control. still need triac control