Fixed bugs related to xml reader and focus moving between tabs