added event emit on status change