remove submit button dependency from connect.py