Setting owner of modal dialog