Organize imports
Remove unused code
Finish action mode when tab selection changes