implemented angularfire controller