merge frontend and function file.