added some flicker stuff, fixed footer behavior