write method for toggle_oven