Add the function of title button