[FIX] when go back to the main activity from the detailed activity, restore the state