move functions from buttleData to buttleManager