finish integrating backend and frontend