implement match button