basic implmentation of sample transfer function on ui