Use trait instead of behavior

Use trait instead of behavior for methods and properties. Use behavior only for events.