add ajax to query the uploaded files