Add onRestart method