move drawing logic to the object manager itself