added dialog ui. Not compilable