refactoring UI for github commands
refactoring