added new parameters in listener
support for onclick events