added resource bar functionality