refactoring gui

Signed-off-by: mrzl <lzrm@mrzl.net>