It works! now changing it to async tasks