Fix a bug that the home nav bar does not work in device emulator (both
iOS and android).

It is because the button highlight is managed automatically by the
framework. So checking the highlight class is not reliable. Also, the
ui-state-persist class has to be manually added to make the highlight
persist through page transitions.