fixing dialog buttons position