factorizing index.php and  enabling zooming to school district