Updates the visibility classes