Update ui.js

Adicoinar, remover e verificar classes.