update FunctionActivity