Restore tab state when switching

To reset modifications, you can use right-click->reset