improved sample ui