remove spaces and fix footer