add view matches functionality