integrate backend and frontend