use match selected page name with route object key instead of page class