Sample coding related to UI