completed tooltip function and started front-end part of plugin