another way to wrap onclick events