fixed route to index. minor bug fixes