calculateDim
Added description for actionCommand