changed functionallity of render_header