Modify templates by css