bootstrap and Smarty 3 cleanup