replaced direct_to_template calls in the views with render calls as per django 1.5