Added Modal.hide() and router history