use php for routing and layout