Connect frontend with backend