reset title function