change machine states colors and fix flickering pause button