moved connection pool to MainView