creating topology with pan/zoom functionality