updated sample project to support ios5