Added ajax stuff, file upload