Removed orientationchange listener and custom delay function