reorganize templates and apply bootstrap theme