dialog fixes, controller events fixes