Clean up store.xql
Trigger validation when switching to new tab.