refactor some GUI related scripts
add a BGM manager for play bgm