handleClick - fixed bug