updated UI of the sample