Hidden Query Index and buttons, include Failed Query response logic