added onclick and on hover to apply on rootScope