Removed unneeded passing $data to footer