Minor changes to Wiki
Move editing code into its own function