Electronic device and control method thereof