creating route to sync and changing table layout