Changed append to write so it would stop posting multiple times on refresh