added relationship for instance -> deployment and updated views