window location reload not working in ios