moved render to appropriate pages