facebook ui and functions