add footer, fix some layout display bugs existed long times ago