Fixed error on cross thread calls. Now all of them use invoke correctly