edit observer class