add signal and slot functions. commuication between gui and server works
fine.