subtitle, title code refactor