converted battery bar to fragment