Added pre-render callback to Adaptor