added update status method