adding titles and borders