added match calc to router so you dont have to reload page