Title function and index