fixed bugs when uploaded to live site, added redirect