update view after creating a new note and trashing/untrashing an existing note