add view relationship