re-format the BaseActivity class