Add repainting after deletingattribute from class