added volumebar, several refactoring done