before dynamic view