refactored update.php and index.php
refactored update.php and index.php
save and load working