This is... a little questionable. Adds a page-specific update
function. This... will hopefully work, but could use serious re-jiggering.