created controller for managing sync.