rewrite view callback function indexto use shortcut render_to_response