adding position saving and settings