refactored the html template in the plugin