integrated with firebase to persist posts