I agree.  I'll work on reducing the repeated lines since each page has the same basic logic.