Add function to toggle state of the processing status.