Added wrapper function to call refresh methods using g_idle_add()
Changed from deprecated gtk_idle_add to g_idle_add