checkbox and switch to tab