add logout functions to factories
Merge branch 'origin/feature-gui'
update test
Finish gui
Merge branch 'origin/dev'