added dialog ui. Not compilable
working dialog1