rewritting loadPortsMenu