added AMD definition to ui.effect