Active regions and the large scale flow in the solar photosphere