fix wrong function method used to execute with context
Merge pull request #1324 from control-center/feature/onShowFix

fix wrong function method used to execute with context