make model saving better to avoid unwanted key presses