improving click response for color detection script