Remove the use of state for checkbox