fixed bug to make page output from file instead of static