update div snippet