add bar ui component
polish bar class