simplified UI code