fix dialog for mobile webkit