add title function instead of back button