Support custom footer background and fix some bug