implementing content changed