Rename tabIndex to staff_type, move staff max count constant to #define