hide all modal windows before trying to open a new one.

Signed-off-by: Chris Jones <chris@jonezy.org>
Merge pull request #484 from jonezy/master

hide all modal windows before trying to open a new one.