Added ios7 support