moved window.onload to index.html
added list over flags