reorganize plat-specific files, add controls, events