Implementing signals and slots in order to communicate and handle redlines with main application