added $on for firebase call