add loading title function