Re-implement chat with firebase