Added timer to switch between views every 2 seconds