added clickHandler function