add join queries in UI