some ui code refactoring and bugfix (W works now!)
primetest finished and ui accepts it!
(small bug when data is left on the stack after the command execution)