refactor github repo widget