Modified for Windows8 and iPad