Adding support for background syncing in gui