configured auto load button to store data in firebase rather than a js object