hide delete button after creating a node