moved async firebase function to top, otherwise wouldn't load sometimes