No more "if" loop

The if loop was not working, so it was done away with.  Now the entire
page runs on simple functions.

Shout out to Mike R. for the assist on this one!