added ability to show or hide battery percentage