Initialize UIKit components on main thread