added method to update node status