Add the command feature in maptrem_detail