sync button functionality
Merge pull request #317 from tbrockman/elasticSearchDev

sync button functionality
added Theo's changes for SYNC