added timeout so that lights turn themselves off after 10 minutes of inactivity