Added a sync button to the main page