fix bugs in phoneState, add load and save to main tab