changed the syntax of signals and slots