introduced UIDevice extension to get current platform