Some iOS 7 compatibility implemented