backend and frontend sync