added auth for firebase, fix up math for svg background