update main view.
add some features in ConnectController