click behavior outside switch,using templateCache and styles