fixing dialog stuff