for courses view added csrf token check decorator