Added flip animation for iphone template.
Fixed some issues.