return to the previous state