sample ui with plot working