added templating system library and made recent match history show up on the popup. need to move all this to a new page and use the pop-up to open the specific pages.