Made confirmation window compatible with both browser and mobile device