dynamic view page from db