Ajax functionality added to upload form