example code for ActionBar.