Removed changes for page flickering that did not work