scroll and previous state workspace tab

Save the scroll and previous tab just opened