Converted app to use firebase