Add middleware process_view and decorators