added splash screen and a little bit of refactoring in BaseActivity