Wired up frontend to make calls to backend