added loading gif and saved docs can now be deleted