add fonction calculate saving and first step view js