ressource cleaning and pre implementation of the three state checkbox