implemented the plugin as jQuery special event