moved class to story.js
added selected func
prolly a better way for a lot of this