smarty3 and bootstrap fixes