@Override
  public boolean onOptionsItemSelected(MenuItem item) {
    // TODO Auto-generated method stub
    switch (item.getItemId()) {
      case R.id.menu_about:
        Intent i = new Intent(this, AboutActivity.class);
        startActivity(i);
        return true;
      case R.id.menu_synchronize:
        SyncTask syncTask = new SyncTask(CalendarViewActivity.this);
        syncTask.execute();
        return true;
      case R.id.menu_logout:
        showDialog(DIALOG_LOGOUT);
        return true;
    }

    return super.onOptionsItemSelected(item);
  }