Archived notes now delete properly and a few small bug fixes