Keeping open tab after page reload or save and not going back to first tab

This is a fix to keep the table state even after save and reload and not to go back to the first tab.