Trying to remove the ghost click from dialog example