Add function for rebuilding collection content