Handle orientation change to prevent reload of webpage