Finished implementing functionality of ResourceBarController