Updated center function for latest updates on bootstrap