checkbox functionality activated