added footer functionality