rename main package to 'ui' and create pckage 'code'