added 'delete rule', need to make the dialogue nicer.