Prevent showing more than one dialog at one time