add some helper functions; add some bar widgets