bug fixes to regional controller js