fixed paths, altered select script, moved state classes to html