add timeout event in query window, changed query layout