fix layout footer, code