changed scroll event to click  event