updated views for csrf