update theme & function mapping