Added reset slot into gui.Improved network method