connecting frontend