Setting property to checked if it was checked previously