remove element on cancel state transition