Moved toggle button event subscribe into document ready so it will not occur before the checkbox has been created