Moved from usin createinstance for new events and todo items to new object function.

Signed-off-by: Michel <info@1st-setup.nl>