add modal support to ui.modal( $content, opts )
refactor ui.modal()