Fixed editor delete box
merged from dnau
Added buttons. Added primitive events system.