rules div deletes on click