updated plugin with tooltip option