break out userinterface setup, make fb variable