extract statbar into separate view.