changed trigger to click