handle the dot button