Dynamic query building UI written in Angular