Added code to change the screen after slideDelay