upfate theme & functions