updated to new signal-slot syntax