fix logging directory for WCF and change click event to work in iPhone