integration between frontend and backend pt.1