sync backend/frontend data whenever there’s a change (ajax calls)