added code to make viewmodel presetpost work better.