corrected connection page and fixed many bugs