fixed a few small bugs. including bootstrap layout and template delte