simplify the css, and remove the trigger template