Add logic to differentiate between ipad/iphone