move title to header and enhance performance