optimized code by moving onOptionsItemSelected and setupActionBar methods from other activities to BaseActivity