adding match method to base view