added active item filtering in relations helper