Fix Msg function selection
Do not show windows on querying