Make tab functions on home page more object-oriented.