Got the page working on localHost, only functions left