added closeTrigger and replaced trigger with openTrigger