Attempt at connecting signals to document objects only once