making show page change based on match state