Added viewport_init_wrapper for event