refactoring of actionBar, step2