Use a loop instead of hardcoded rows and generally clean up the page callback.