code cleanup
fixed ringtone set issue.