added ios7 support