add active record observer