updated sidebar code to use the new wiki system