moved render_bar to view