connecting backend & frontend