base function to toggle status value of the model being used