add click handle logic