Added toggle for index and fields on query view