Fixing bug for writing footer on mobile