Working sync adapter and a new functionality of the refresh button