Updated Controller to make first event for flows