Fixed Popover

Fixed popover and detects if the device is iphone or ipad