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

Signed-off-by: Chris Jones <chris@jonezy.org>