save current scribble when tab changes