adds ios7 compatibility