added event for sync button