working tab restore after submit