How to save port settings in label?