Generated pages controller, changed to work on Windows