renamed the modal manager to window manager. fixed bootstrap bug. Added window as a target for event callbacks.