added logic for ipad compatability