add gen_matches + fix two buttons in matches.show