upgraded to bootstrap 3, support sub pages