add history to plugin