update content on writing page