added method: parseContent(), set template for new page content; added param: shownCallback(), would be called after the new content is shown.