added toggle for UI state and multiple actor support