Implemented addItem and refactored dialogcreation
Potential refactor of register that at least makes it testable
Still not good, but return what i want..