Fix bug not checking writing is saved
Fix highlighting current writing bug when new writing is created