rerendering bug when deleting notes