Fix whitespace and indentation, convert tabs to spaces.
Revert to all_devices tab in list view if currently-viewed device logs out.