if cancel button is clicked, if/loop actions are not added to the
pseudocode list