Fix bugs

Fix bugs from bootstrap.js and authenticated edit links.