update timer
Fix timer. sanitize inputs