added code comment & sample UI change