frontend and connections to backend