Moved add_id_to_scope to render