Converted the edit.php to a better Pages app