Added checkbox handler