@Override
 public boolean onOptionsItemSelected(android.view.MenuItem item) {
   switch (item.getItemId()) {
     case android.R.id.home:
       mProgressLayout.show();
       NoteApplication.getInstance()
           .getExecutorPool()
           .execute(
               new Runnable() {
                 @Override
                 public void run() {
                   renameCategories();
                   deleteCategories();
                   CategoryDBModel.getInstance().updateOrder(mCategoryList);
                   mHandler.sendEmptyMessage(1);
                 }
               });
       break;
   }
   return true;
 }
 @Override
 public void showLoading() {
   mProgressLayout.show();
 }