Refactor gui

Change namespaces
Add command manager