footer bar and opertimize code

Signed-off-by: wangjun <junwang1216@gmail.com>