added ui code from musicdemo
added ui code from musicdemo