update frontend when it matches the previous one