Use localStorage to persist selected tabs