update editor content based on github repo selected file