implemented ui-modal and updated examples