adds ios7 compatiblity