pushing function for firebase