Modal window interface for easy creation of modal windows, dialogs, and states on a single page application