page generator and routes working