fix the title screen function