ci317:trabalho_1_6: Add functions for buttons behaviour

Signed-off-by: Filipe Leuch Bonfim <flb09@inf.ufpr.br>