Updated checkbox script to check the boxes if user has checked them before