implement dialog for authorization