facebook UI and functions