connect after adding listeners