Implemented undoing

Doesn't quite work
Save works, but messy urls