added rails observers