added connection closing to pages to fix the loading lag