hook up dialog