refactoring seekbar