move checkbox event handler into document ready