create a dynamic view