Bug fixing

Still cant get the index page to behave.