added code to handle viewmodel presetpos