added reset code button to main and kv file