creating tab functions for article details