modularizing the header & footer