fix dialog button positioning