State-dependence action bar buttons