add bootstrap lib, fix bugs in analytics ctrl and associated file.