Finished adding edit and delete pages, and functions