fixed a bunch of mistakes with the editing and creating routes