Added connections with signals and slots