added function to set checkbox