Added music volume bar

Also did some code optimization.