added adaptive footer