Code refactoring

* Abstract the `BaseActivity` and  `BaseFragment`
* Fix invalid index when user's login status has changed
* Update `NOTICE.html`