conditional footer