combined all FB updating functions into a switch case