[[ Widgets ]] Refactored dialect code into separate files.