implements terminar button