fix registerClick to actually work