Update status using ajax