refactored dispatch view