Fixed template error; rewrote fragments to be Bootstrap-compatible