improve dialog ui
fixes #28