Updated view snippet to fix namespace order and add a configurable base class