Updated addOne method to handle render after new note added