refactor the basic bar infomation