added progress update to backend using ajax