Thanks! I tried to keep the code clean so anyone could make they own modifications. If your method works then it's good, I thought about this other way because changing the states could bring unexpected bugs.