integrated UI code