replace render_to_response with render