Build mechanism to pass between NewQuery and MainActivity via intents