Changing route after creating/editing document