Refining factory with firebase and updating site content