Function UI sample code