fix delete, make add realtime