Modify settings page and connection functions