changed this.selectedGistItem to using model