generic event handler using plugin sent html