Changing complete over to firebase logic