Connect frontend to backend