fix order page function