Extract UI code to a package
Structure