fixed on/off toggle and now storing state in model.