Made changes to make home page work with tomcat (hopefully)