firebase implemented with composite view