add footbar and statistics code