adding context and referral tables
fixing filter by webapp