added basic frontend to backend interaction