add phone state class. add min batery settings