implemented for iPad too