added restoring tab state