Refactoring CommonMenus and fixing out-of-bounds bug in
ListBatchViewController