remove lines that where not need inside the click function