Add beforeDisplayContent hook
Render layout on before dispatch action