refactoring UI for github commands