widgets: fixed missing text "Logoff" and did some refactoring in
ButtonsForm