updates to edit.php and meta.php