added page refresh checkbox, cleaned up more code in the report