fixed firebase ref and removed console.logs