added auto update feature (shuting down the app, and restarting it within a few seconds