rebuild and added edit page