bugs and bootstrap

some error fixing and bootstap navbar installed for later design.