Make checkbox working