add advanced query ctrler