fix layout footer, remove print_r