modify some views and add the connection checking